import 'package:dio/dio.dart';
import 'package:get/get.dart';
import 'package:get/get_state_manager/src/simple/get_controllers.dart';

import '../../../../../bean/KeyValueBean.dart';

class EmployerPage_workTypeSelectController3 extends GetxController {
  RxList<KeyValueBean> list_xz = <KeyValueBean>[].obs;

  EmployerPage_workTypeSelectController3() {
    initData();
  }

  void initData() {


    list_xz.add(KeyValueBean.keyValue(key:"0", value: "面议", ui_select_view_data: 0));
    // list_xz.add(KeyValueBean("1", "6-12W", 0));
    // list_xz.add(KeyValueBean("2", "12-18W", 0));
    // list_xz.add(KeyValueBean("3", "18-24W", 0));
    // list_xz.add(KeyValueBean("4", "24-36W", 0));
    // list_xz.add(KeyValueBean("5", "36-50W", 0));
    // list_xz.add(KeyValueBean("6", "50W-100W", 0));
    // list_xz.add(KeyValueBean("7", "100W以上", 0));
  }

  void clearData() {

    list_xz.forEach((v) {
      v.ui_select_view_data = 0;
    });
    list_xz.refresh();
  }

  List<KeyValueBean> select() {

    List<KeyValueBean> selectedList2 =
    list_xz.where((v) => v.ui_select_view_data == 1).toList();




    return selectedList2;
  }
}
